﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace logic
{
    public class sysCode
    {
        public static DataTable companyTypeList()
        {
            return SysCode.list("01");
        }

        public static DataTable companySizeList()
        {
            return SysCode.list("02");
        }
        public static DataTable payMethodList()
        {
            return SysCode.list("03");
        }
        public static DataTable areaList()
        {
            return SysCode.list("04");
        }
        public static DataTable orderStatus()
        {
            return SysCode.list("06");
        }
        public static DataTable paymentStatus()
        {
            return SysCode.list("08");
        }
        public static DataTable orderSource()
        {
            return SysCode.list("09");
        }
        public static DataTable recipeFrom()
        {
            return SysCode.list("12");
        }
        public static DataTable deductType()
        {
            return SysCode.list("13");
        }
        public static DataTable receiveTime()
        {
            return SysCode.list("14");
        }
        public static SysCodeEntity getReceiveTime(string xm)
        {
            return SysCode.getByXmAndBm(xm,"14");
        }
        public static DataTable listWithPayStatus(string type)
        {
            return SysCode.listWithPayStatus(type);
        }

        public static DataTable sellerTypeList()
        {
            return SysCode.list("16");
        }

        public static DataTable buyerNatureList()
        {
            return SysCode.list("17");
        }

        public static DataTable sellerNatureList()
        {
            return SysCode.list("18");
        }

        public static DataTable severityLevelList()
        {
            return SysCode.list("22");
        }

        public static SysCodeEntity getSeverityLevelByxm(string xm)
        {
            return SysCode.getByXmAndBm(xm, "22");
        }

        /// <summary>
        /// 得到投诉处理结果
        /// </summary>
        /// <returns></returns>
        public static DataTable processResultList()
        {
            return SysCode.list("23");
        }
    }
}
